<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<jsp:include page="validaSesion.jsp"></jsp:include>
<%@ include file="../taglib.jsp" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<link href="css/menuPrincipal.css" type=text/css rel=stylesheet>
<script src="js/menuBar.js" type="text/javascript"></SCRIPT>
<link href="css/displaytag.css" rel="stylesheet" type="text/css"/>
<SCRIPT src="js/displaytag.js" type="text/javascript"></SCRIPT>
<script type="text/javascript">
    window.name='main' ;

     var x = (screen.width-400) / 2;
     var y = (screen.height-400) / 2;
        

/*function listarGenerado(){
	  document.frmEnvio.action = 'carnet';
      document.frmEnvio.metodo.value='consulPosGenerado';
	  document.frmEnvio.submit();
   }
*/
function escoge(value){
	document.forms[0].target='main';
	window.open("carnet?metodo=verCarnetGenerado&codigo="+value+"","Carnet","toolbar=no,directories=no,location=yes,menubar=no,scrollbars=no,statusbar=no,tittlebar=no,menubar=no,resizable=no,width=500,height=300,left="+x+",top="+y);
	
	document.frmEnvio.metodo.value='consulPosGenerado';
	document.frmEnvio.codigo.value=value;
	document.frmEnvio.action='carnet';
	document.frmEnvio.submit();

	
}


</script>
</head>
<body  class = "fondo"> 

<table border="0" height=100% width=100% >
	<tr>
		<td align="center">
		<br>

		<jsp:include page="includes\header.jsp"/>
		<jsp:include page="includes\menuBarraECA-Carnet.jsp"/>
		<jsp:include page="includes\header2.jsp"/>
		<br>

		<div class = cuerpo_xy>

			<div class=cuerpo>
				<div class = contenido>
				
				
					<form name="frmEnvio" method="post" >
					<input type="hidden" name="metodo"/>
				    <input type="hidden" name="codigo"/>
				
<table border="0" cellspacing="0" cellpadding="0"  align="center">
						<tr>
							<td align="center" colspan="2" bgcolor="#F1FDD9">
								<h3>...::: LISTA DE POSTULANTES (Con carnet) :::...</h3>
							</td>				
						</tr>
						<tr>
					<td align="center" colspan="2">
			            <p>&nbsp;</p>
			
    <!-- 
    <tr>
             <th>NOMBRE</th>
             <th>APELLIDO PATER</th>
             <th>APELLIDO MATER</th>
             <th>ESTADO CARNET</th>
             <th><img alt="Seleccionar" src="images/open.gif"></th>
      </tr>
     
       <c:forEach items="${requestScope.POS_GENERADO}" var="p">
                  <tr>        
                  <td height="31">${p.strNombreMix}</td>
                  <td>${p.strApePaterMix}</td>
                  <td>${p.strApeMaterMix}</td>
                  <td>${p.strEstaCarnetMix}</td>
                  <td><a href="javascript:escoge('${p.intCodPostuMix}')" >
                  <img alt="ver Carnet" src="images/Carnet.png" height="20" width="20" border="0"/></a>
                          
                          </td>
                          
                  </tr>
      </c:forEach>
       -->
       <tr>
       <td colspan="5" >
        <display:table name="${requestScope.POS_GENERADO}" id="bean" export="false" requestURI="carnet?metodo=consulPosGenerado" pagesize="10">
					<display:column property="strNombreMix" title="Nombre" sortable="true" />
					<display:column property="strApePaterMix" title="ApePater" sortable="true" />
					<display:column property="strApeMaterMix" title="ApeMater" sortable="true" />
					<display:column property="strEstaCarnetMix" title="Estado Carnet" sortable="true" />
					<display:column title="Ver C." >
						<a href="javascript:escoge('${bean.intCodPostuMix}')" >
                  <img alt="ver Carnet" src="images/Carnet.png" height="20" width="20" border="0"/></a>
					</display:column>
	</display:table>
	</td>
      </tr>
      </table>
        	
		</form>
		</div>
		</div>
	
		<jsp:include page="includes\lateral.jsp"/>

		</div>

		<br>

		<jsp:include page="includes\piePagina.jsp"/>
		</td>
	</tr>
	
		
</table>


</body>
</html>